package config

type Config struct {
	App   App   `yaml:"app"`
	Mysql Mysql `yaml:"mysql"`
	Redis Redis `yaml:"redis"`
}

type App struct {
	Port int `yaml:"port"`
}

type Mysql struct {
	Host         string `yaml:"host"`
	Port         int    `yaml:"port"`
	User         string `yaml:"user"`
	Password     string `yaml:"password"`
	Database     string `yaml:"database"`
	MaxIdleConns int    `yaml:"max_idle_conns"`
	MaxOpenConns int    `yaml:"max_open_conns"`
}

type Redis struct {
	Addr     string `yaml:"addr"`
	Password string `yaml:"password"`
	Db       int    `yaml:"db"`
}
